﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ArticlesEdit.ascx.cs"
    Inherits="controls_admin_ArticlesEdit" %>
<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<!-- forms -->
<div class="box">
    <!-- box / title -->
    <div class="title">
        <h5 id="module_title" runat="server">
            Cập nhật tin tức
        </h5>
    </div>
    <div id="divMessage" runat="server">
    </div>
    <!-- end box / title -->
    <div class="form">
        <div class="fields">
            <div class="field field-first">
                <div class="label">
                    <label for="input-medium">
                        Nhóm danh mục sản phẩm</label>
                </div>
                <div class="input">
                    <asp:DropDownList ID="ddlCategories" runat="server" CssClass="cate" />
                    <div class="note" id="NOTE_CATE" runat="server" />
                </div>
            </div>
            <div class="field">
                <div class="label">
                    <label for="input-medium">
                        Tiêu đề:</label>
                </div>
                <div class="input">
                    <asp:TextBox ID="txtFULL_ARTICLE_TITLE" runat="server" CssClass="medium required"
                        MaxLength="500" />
                    <br />
                    <asp:TextBox ID="txtTitleEng" runat="server" CssClass="medium required eng" MaxLength="500" />
                    <br />
                    <div class="note" id="NOTE_TITLE" runat="server" />
                </div>
            </div>
            <div class="field">
                <div class="label">
                    <label for="input-medium">
                        Ảnh đại diện:
                    </label>
                </div>
                <div class="input input-file">
                    <asp:FileUpload ID="fulTHUMB_IMG" runat="server" CssClass="file" /><br />
                    <br />
                    <img runat="server" id="ctImages" />
                    <div class="note" id="NOTE_URL" runat="server">
                        Chọn file ảnh kích thước 100 x 100 px
                    </div>
                </div>
            </div>
            <div class="field">
                <div class="label">
                    <label for="input-small">
                        Cho phép hiển thị:
                    </label>
                </div>
                <div class="input">
                    <asp:CheckBox ID="cboDisplay" runat="server" Checked="true" />
                    <div class="note" id="NOTE_DISPLAY" runat="server" />
                </div>
            </div>
            <div class="field">
                <div class="label">
                    <label for="input-small">
                        Tin hot:
                    </label>
                </div>
                <div class="input">
                    <asp:CheckBox ID="cboHot" runat="server" />
                    <div class="note" id="Div4" runat="server" />
                </div>
            </div>
            <div class="field">
                <div class="label">
                    <label for="input-medium">
                        Thứ tự hiển thị:</label>
                </div>
                <div class="input">
                    <asp:TextBox ID="txtSortDisplay" runat="server" Width="50px" CssClass="number required"
                        Text="1" />
                    <div class="note" id="NOTE_SORT" runat="server" />
                </div>
            </div>
            <div class="field">
                <div id="box-tabs" class="box">
                    <script type="text/javascript">
                        $(document).ready(function () {
                            $("#box-tabs").tabs();
                        });           
                    </script>
                    <div class="textarea textarea-editor">
                        <div class="title" style="border: 1px">
                            <ul class="links">
                                <li><a href="#box-1">Tiếng việt</a></li>
                                <li><a href="#box-2">Tiếng anh</a></li>
                            </ul>
                        </div>
                        <div id="box-1">
                            <CKEditor:CKEditorControl ID="ckContent" runat="server" Height="500" FilebrowserBrowseUrl="../ckfinder/ckfinder.html"
                                FilebrowserImageBrowseUrl="../ckfinder/ckfinder.html?type=Images" FilebrowserFlashBrowseUrl="../ckfinder/ckfinder.html?type=Flash"
                                FilebrowserUploadUrl="../ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Files"
                                FilebrowserImageUploadUrl="../ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images"
                                FilebrowserFlashUploadUrl="../ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Flash">
                            </CKEditor:CKEditorControl>
                        </div>
                        <div id="box-2">
                            <CKEditor:CKEditorControl ID="ckContentEng" runat="server" Height="500" FilebrowserBrowseUrl="../ckfinder/ckfinder.html"
                                FilebrowserImageBrowseUrl="../ckfinder/ckfinder.html?type=Images" FilebrowserFlashBrowseUrl="../ckfinder/ckfinder.html?type=Flash"
                                FilebrowserUploadUrl="../ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Files"
                                FilebrowserImageUploadUrl="../ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images"
                                FilebrowserFlashUploadUrl="../ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Flash">
                            </CKEditor:CKEditorControl>
                        </div>
                    </div>
                </div>
            </div>
            <div class="buttons">
                <div class="highlight">
                    <asp:Button ID="btnSubmit" runat="server" Text="Cập nhật" OnClick="btnSubmit_Click" />
                </div>
                <input type="reset" value="Làm lại" />
            </div>
        </div>
    </div>
</div>
<!-- end forms -->
